/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Hoja5;

/**
 *
 * @author Josue
 */
public abstract class AbsClass<E> implements Queue<E> {
    private int tam;
    
     public void setTam(int t){
        tam = t;
    }
    
    @Override
    public int size(){
        return tam;
    }
    
    public boolean isEmpty(){
        
        if (tam==0){
            return true;
        } 
        else{
            return false;
        }
    }
}